/**
 * @filename:Const 2018年01月01日
 * @project 微面    边鹏  V1.0
 * Copyright(c) 2017 BianP Co. Ltd. 
 * All right reserved. 
 */
package com.${page_id}.service;

import com.${dao_id}.entity.${model_name};

/**
 * @explain 逻辑层，接口类(${model_name_cn}) 
 * @author  BianP 
 * @class    ${model_name}Service.java  
 */
public interface ${model_name}Service {
	
	/**
	 * @explain 查找对象
	 * @param   id
	 * @return  ${model_name}
	 * @throws  Exception
	 */
	public ${model_name} selectByPrimaryKey(Long id);
	
	/**
	 * @explain 保存对象(添加)
	 * @param   ${model_name}
	 * @return  int
	 * @throws  Exception
	 */
	public int insertSelective(${model_name} ${object});

	/**
	 * @explain 有选择性：修改对象
	 * @param   ${model_name}
	 * @return  int
	 * @throws  Exception
	 */
	public int updateByPrimaryKeySelective(${model_name} ${object});

	/**
	 * @explain 有选择性：全修改
	 * @param   ${model_name}
	 * @return  int
	 * @throws  Exception
	 */
	public int updateByPrimaryKey(${model_name} ${object});
	
	/**
	 * @explain 删除对象 
	 * @param   id
	 * @return  int
	 * @throws  Exception
	 */
	public int deleteByPrimaryKey(Long id);
	
}
